﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ProfilerPDS {
    /// <summary>
    /// Interaction logic for ApplicationChooserWindow.xaml
    /// </summary>
    
    
    public partial class ApplicationChooserWindow : Window {

        private ApplicationInfo _appInfSel = null;

        internal ApplicationInfo Selected {
            get { return _appInfSel; }
        }    
        
        
        public ApplicationChooserWindow() {
            InitializeComponent();


        }

        private void CancelBtn_Click(object sender, RoutedEventArgs e) {
            this.DialogResult = false;
        }

        private void OkBtn_Click(object sender, RoutedEventArgs e) {
            
            this.DialogResult = true;
        }

        private void applicationsDg_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) {
            _appInfSel = applicationsDg.SelectedItem as ApplicationInfo;

        }
    
    
    
    }


    




}
